<%@ taglib uri="http://java.sun.com/jstl/core" prefix="c" %>
<%@page isELIgnored="false"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
	<link rel="stylesheet" type="text/css" href="estilos/css.css" />
<title>Insert title here</title>
</head>
<body>

<c:if test="${sessionScope.Cliente == null}">
	<c:set var="mensagem" value="Por favor escolher um cliente!" scope="request"/>
	<jsp:forward page="mensagens.jsp"/>
</c:if>

<div id="navigation_top">

<a href="index.jsp?local=eplanilhas&acao=composestoque_principal&interna=composestoque_upload_arquivo" class="navigation_top">Importar Arquivo</a>
<a href="index.jsp?local=eplanilhas&acao=composestoque_principal&interna=composestoque_periodo_estoque" class="navigation_top">Demons. Estoque</a>
<a href="index.jsp?local=eplanilhas&acao=composestoque_principal&interna=composestoque_periodo_vendas" class="navigation_top">Demons. Vendas</a>
<a href="index.jsp?local=eplanilhas&acao=composestoque_principal&interna=composestoque_periodo_consumo" class="navigation_top">Demons. Cons.</a>
<a href="index.jsp?local=eplanilhas&acao=composestoque_principal&interna=composestoque_periodo_imobilizado" class="navigation_top">Demons. Imob.</a>

</div>

<c:set var="cliente" value="${sessionScope.Cliente}"/>
<c:set var="planilha" value="${sessionScope.Planilha}"/>

<h2>${cliente.nome} - ${planilha.nome_planilha}</h2>

			<c:choose>
				<c:when test="${param.interna != null}">
					<c:import url="pages/${param.interna}.jsp"/>
				</c:when>
				<c:otherwise>
					<c:import url="pages/composestoque_princ.jsp"/>
				</c:otherwise>
			</c:choose>

</body>
</html>